package com.version1_3.controller;

import com.util.httpRequest.HttpRequest;
import com.version1_2.controller.SubscriController1_2;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;

/**
 * Created by reeves on 15/12/22.
 */
@Controller
public class RecomController1_3 {
    private static final Logger LOGGER = Logger.getLogger(RecomController1_3.class);

    @Autowired
    private SubscriController1_2 subscriController12;

    /**
     * 这里是新的接口定义-订阅模块
     * Description: 新的接口是跬步app2.0中需要使用到的
     * Author: reeves
     * Date: 2015/12/22
     */

    /**
     * 调用接口：http://121.40.188.62/kuibuversion1/version1_3/recommend/getRecommendPage
     *
     * @Description: 获取推荐界面信息
     * 增加缓存清除功能 3.25
     */
    @RequestMapping(value = "/version1_3/recommend/getRecommendPage", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    @ResponseBody
    public String getNewSubscriPage(HttpServletRequest request) throws UnsupportedEncodingException {
        return subscriController12.getNewSubscriPage(request);
    }


}
